package com.yy.studyspringboot.desensitization.domain;

import com.yy.studyspringboot.desensitization.annotate.Desensitization;
import com.yy.studyspringboot.desensitization.config.DesensitizationType;
import lombok.Data;

/**
 * @author wangzhenjun
 * @date 2023/9/12 9:15
 */
@Data
public class User {
 
    @Desensitization(type = DesensitizationType.ID_CARD,prefixLen = 6,suffixLen = 16)
    private String cardId;
 
    @Desensitization(type = DesensitizationType.CHINESE_NAME)
    private String name;
 
    @Desensitization(type = DesensitizationType.MOBILE_PHONE)
    private String phone;
 
    @Desensitization(type = DesensitizationType.CUSTOMIZE_RULE,prefixLen = 3,suffixLen = 6)
    private String info;
}